<?php

namespace App\Models;

use App\Helpers\BaseModel;
use App\Helpers\RequestCriteria;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class BatteryReport extends Model
{
    use HasFactory, RequestCriteria, BaseModel;
    protected $fillable = [
        'name',
        'voltage',
        'current',
        'SOC',
        'SOH',
        'temperature'
    ];
    public function esBattery()
    {
        return $this->belongsTo(ESBattery::Class);
    }
}
